from random import randint

a = int(input())
count = 0

for i in range(a):
    x = randint(-100, 100)
    y = randint(-100, 100)
    if  x >= -7 and x <= 5 and y >= -8 and y <= 5:
        count += 1

print('Кол-во выстрелов: ', a)
print('Кол-во попаданий: ', count)
